package com.mark.tim.kutspel;

import android.graphics.Rect;

public class Bullet {

	public static final int BULLET_WIDTH = 11;
	public static final int BULLET_HEIGHT = 60;

	private int width = (int) (BULLET_WIDTH * PlayView.getFactor());
	private int height = (int) (BULLET_HEIGHT * PlayView.getFactor());

	private float speed;
	private Rect rect;

	public Bullet(float speed, int x, int y) {
		this.speed = speed * PlayView.getFactor();
		rect = new Rect(x - width/2, y, width/2 + x, height + y);
	}

	public void setRect(Rect rect) {
		this.rect = rect;
	}

	public Rect getRect() {
		return rect;
	}

	public float getSpeed() {
		return speed;
	}
}
